package com.demo.react.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.demo.react.entity.Token;
import com.demo.react.repository.TokenRepository;
import com.demo.react.service.TokenService;

@Service
public class TokenServiceImpl implements TokenService {

	@Autowired
	private TokenRepository tokenRepository;

	@Override
	public String getTokenByAuthor(String autohr) {
		return tokenRepository.getTokenByAuthor(autohr);
	}

	@Override
	public Token insertTaken(Token token) {
		return tokenRepository.save(token);
	}

}
